(function() {
    var a = __;
    a.set("__.app.cateRanka");
    a.app.cateRanka = (function() {
        var p = a.Dom, o = a.Event, l = a.Lang, k = a.log, h = a.config.win, f = a.Table, d = a.cfg[0].cateRank, n, b, m, j;
        var g = []
            , e = 0
            , c = function(q) {
                if (e == q) {
                    return
                }
                e = q;
                if (e == 1) {
                    i()
                }
            }
            , i = function(q) {
                if (__.lang.isFunction(q)) {
                    g.push(q)
                }
                if (e == 1) {
                    __.each(g, function(r) {
                        r()
                    })
                }
            }
            ;
        return {
            onReady: i,
            init: function() {
                if (d) {
                    if (__.dom.f("mod-rank-spacer")) {
                        __.dom.f("mod-rank-spacer").style.display = "block"
                    }
                    if (__.dom.f("mod-rank")) {
                        __.dom.f("mod-rank").style.display = "block"
                    }
                    var s = this, r = h.g_Code, q = h.g_Type, t;
                    b = f.MAP_STOCKTYPE[q] + r;
                    j = d.plt_code;
                    n = "pt" + j + "_" + r;
                    if (q == "51") {
                        p.f("du-cr-4").innerHTML = "\u6df1";
                        m = "sz399001"
                    } else {
                        p.f("du-cr-4").innerHTML = "\u6caa";
                        m = "sh000001"
                    }
                    this.dataNames = [m, "bkqt" + j, n];
                    this._loadMainStock();
                    setTimeout(function() {
                        s._setupUpdate()
                    }, 4000)
                } else {
                    c(1)
                }
            },
            dataNames: [],
            _setupUpdate: function() {
                var r = new __.CronLoader()
                    , q = this;
                r.subscribe({
                    type: 2,
                    qtName: this.dataNames.join(","),
                    interval: 4,
                    onOk: function() {
                        q.update()
                    }
                });
                r.start()
            },
            update: function() {
                var s, t, r;
                s = h["v_" + b] && h["v_" + b].split("~");
                t = h["v_bkqt" + j] && h["v_bkqt" + j].split("~");
                r = h["v_" + m] && h["v_" + m].split("~");
                if (s && t && r) {
                    var q = "du-cr-0";
                    p.f(q + "-0").innerHTML = f.processors.GET_PERCENT(s[32]);
                    p.f(q + "-1").innerHTML = f.processors.GET_PERCENT((t[8] - 0).toFixed(2));
                    p.f(q + "-2").innerHTML = f.processors.GET_PERCENT(r[32]);
                    p.f(q + "-3").innerHTML = h["v_" + n];
                    this._draw(q, [s[32], t[8], r[32]])
                }
            },
            _loadMainStock: function() {
                var r = this, s, q = 5, t = function() {
                        if (!h["v_" + b] && q--) {
                            setTimeout(function() {
                                f.load(s, t)
                            }, 500);
                            return
                        }
                        r._fill(h["v_" + b], h["v_bkqt" + j], h["v_" + m]);
                        c(1);
                        try {
                            __.app.QosSS.set("cateRanka")
                        } catch (u) {}
                    }
                    ;
                s = this.dataNames.join(",");
                s += "," + b;
                f.load(s, t)
            },
            _fill: function(s, x, r) {
                s = s && s.split("~");
                x = x && x.split("~");
                r = r && r.split("~");
                if (!s || !x || !r) {
                    return
                }
                var w, v, t, q, u;
                u = '<a href="http://stockapp.finance.qq.com/mstats/#mod=list&id=bd' + x[0] + '" target="_blank" style="float:none;">';
                p.f("du-cr-6").innerHTML = f.processors.TITLE(s).replace("_blank", "_self");
                p.f("du-cr-7").innerHTML = u + x[1] + "</a>";
                p.f("du-cr-5").innerHTML = u + d.stk_c + "</a>";
                p.f("du-cr-8").innerHTML = x[1];
                q = "du-cr-0";
                w = f.processors.GET_PERCENT(s[32]);
                v = f.processors.GET_PERCENT((x[8] - 0).toFixed(2));
                t = f.processors.GET_PERCENT(r[32]);
                p.f(q + "-0").innerHTML = w;
                p.f(q + "-1").innerHTML = v;
                p.f(q + "-2").innerHTML = t;
                p.f(q + "-3").innerHTML = h["v_" + n];
                this._draw(q, [s[32], x[8], r[32]]);
                q = "du-cr-1";
                w = (s[44] - 0).toFixed(0);
                v = (d.hy_zsz - 0).toFixed(0);
                t = (d.sc_zsz - 0).toFixed(0);
                p.f(q + "-0").innerHTML = w + "\u4ebf";
                p.f(q + "-1").innerHTML = v + "\u4ebf";
                p.f(q + "-2").innerHTML = t + "\u4ebf";
                p.f(q + "-3").innerHTML = d.stk_hypm_zsz;
                this._draw(q, [w, v, t]);
                q = "du-cr-2";
                w = s[39] - 0;
                v = d.hy_syl - 0;
                t = d.sc_syl - 0;
                p.f(q + "-0").innerHTML = w;
                p.f(q + "-1").innerHTML = v;
                p.f(q + "-2").innerHTML = t;
                p.f(q + "-3").innerHTML = d.stk_hypm_syl;
                this._draw(q, [w, v, t]);
                q = "du-cr-3";
                w = d.mgsy - 0;
                v = d.hy_mgsy - 0;
                t = d.sc_mgsy - 0;
                p.f(q + "-0").innerHTML = w.toFixed(2);
                p.f(q + "-1").innerHTML = v.toFixed(2);
                p.f(q + "-2").innerHTML = t.toFixed(2);
                p.f(q + "-3").innerHTML = d.stk_hypm_mgsy;
                this._draw(q, [w, v, t])
            },
            _draw: function(r, x) {
                var t = -Infinity
                    , u = []
                    , s = 75
                    , v = []
                    , q = 0
                    , y = 1
                    , A = true
                    , w = "left:"
                    , z = "";
                l.e(x, function(B) {
                    if (B < 0) {
                        A = false
                    }
                    B = Math.abs(B - 0);
                    t = B - t > 0 ? B : t
                });
                if (!A) {
                    q = 41;
                    y = 42;
                    s = 40
                }
                l.e(x, function(D, C) {
                    var B;
                    D = Math.abs(D - 0);
                    B = Math.ceil(D / t * s);
                    u[C] = (!A && x[C] < 0 ? "" : ("left:" + y + "px;")) + "top:" + (7 + C * 23) + "px;width:" + B + "px;";
                    v[C] = !A && x[C] < 0 ? "barL" : "barR"
                });
                p.f(r).innerHTML = "";
                p.addEl({
                    css: "position:relative;width:80px;height:72px;",
                    child: [{
                        cls: "liner",
                        css: "left:" + q + "px;"
                    }, {
                        cls: v[0],
                        css: u[0]
                    }, {
                        cls: v[1],
                        css: u[1]
                    }, {
                        cls: v[2],
                        css: u[2]
                    }]
                }, r)
            }
        }
    }())
}());
__.app.cateRanka.init();
__.app.cateRanka.onReady(function() {
    __.QosSS.set("rank")
});
__.app.news.init({
    code: g_Code,
    type: g_Type,
    news: "news-news",
    notice: "news-notice",
    soso: true,
    useNewData: (function() {
        return true;
        if (location.href.indexOf("debug=true") > 0) {
            return true
        }
        var a = parseInt((__.cookie.get("uin") || __.cookie.get("luin") || "").replace(/^o0*/, ""), 10);
        if (a) {
            var b = a % 10;
            if (b <= 5) {
                return true
            }
        }
        return false
    })()
});
__.app.news.onReady(function() {
    __.QosSS.set("mix-info")
});
(function() {
    var k = __.Dom
        , h = __.load
        , i = __.Event
        , d = window
        , j = "__.app.stock.quotpage.doctor"
        , c = []
        , b = 0
        , a = function(l) {
        if (b == l) {
            return
        }
        b = l;
        if (b == 1) {
            e()
        }
    }
        , e = function(l) {
        if (__.lang.isFunction(l)) {
            c.push(l)
        }
        if (b == 1) {
            __.each(c, function(m) {
                m()
            })
        }
    }
        , g = function(n) {
        var p = n.data;
        var l = /^-{2}$/;
        for (var m in p) {
            if (p.hasOwnProperty(m) && p[m]) {
                var o = p[m];
                if (typeof (o) === "object") {
                    o = o[0]
                }
                if (!l.test(o)) {
                    return false
                }
            }
        }
        return true
    }
        , f = {
        onReady: e,
        showRank: function(p) {
            var o = {
                "1": "doctor_ap",
                "2": "doctor_am",
                "3": "doctor_aa",
                "4": "doctor_bp",
                "5": "doctor_bm",
                "6": "doctor_ba",
                "7": "doctor_cp",
                "8": "doctor_cm",
                "9": "doctor_ca",
                "10": "doctor_dp",
                "11": "doctor_dm",
                "12": "doctor_da"
            }, l = k.f("alphaRank"), m, n;
            n = p.gppj;
            m = o[n];
            k.addClass(l, m)
        },
        formatData: function(l) {
            return l
        },
        displayXing: function(s) {
            s = parseFloat(s);
            var l = 5
                , p = []
                , n = Math.round(s);
            var m = Math.floor(n / 2), q, r;
            if (n % 2 === 0) {
                q = 0
            } else {
                q = 1
            }
            for (var o = 0; o < m; o++) {
                p.push('<span class="wholeStar"></span>')
            }
            for (o = 0; o < q; o++) {
                p.push('<span class="halfStar"></span>')
            }
            for (o = m + q; o < l; o++) {
                p.push('<span class="emptyStar"></span>')
            }
            return p.join("")
        },
        showLine: function(n, p) {
            var m = ["doctor_", n].join(""), r = "--", l = "", q = k.f(m), o;
            if (p) {
                r = p[0];
                l = p[1]
            }
            q.title = [l, "\u70b9\u51fb\u67e5\u770b\u66f4\u591a..."].join("");
            o = k.f(".rightStar", q);
            k.f(".liScore", q).innerHTML = this.formatData(r);
            o.innerHTML = this.displayXing(r)
        },
        showSixLititude: function(o) {
            var l = ["ggbx", "hyzs", "gsyy", "xxpc", "hybj", "jgdx"];
            for (var n = l.length - 1; n >= 0; n--) {
                var m = l[n];
                if (o[m]) {
                    this.showLine(l[n], o[m])
                }
            }
        },
        calcuArrayIndexSum: function(p, m) {
            var o = 0;
            for (var n = 0; n < p.length; n++) {
                var l = p[n].split("~");
                o += Number(l[m])
            }
            return o
        },
        addFlowData: function() {
            var m = "http://stock.gtimg.cn/data/view/flow.php?t=11&d=5&q=" + this.stockcode
                , l = this;
            h(m, function() {
                var r = d.v_s_stk_his;
                if (r) {
                    r = r.split("^");
                    var q = r[13];
                    var o = r[0].split("~")
                        , p = Number(o[8]);
                    var n = __.Dom.f("drnetvalue");
                    k.f("doctor_h2desp").innerHTML += ["\u5f53\u65e5\u8d44\u91d1\u51c0\u6d41\u5165", p.toFixed(2), "\u4e07\u5143\uff0c"].join("");
                    var s = l.calcuArrayIndexSum(r, 6);
                    k.f("doctor_h2desp").innerHTML += ["5\u65e5\u8d44\u91d1\u51c0\u6d41\u5165", s.toFixed(2), "\u4e07\u5143\u3002"].join("")
                }
            })
        },
        addEventToUL: function() {
            var l = this;
            i.on("liuweiul", "click", function(p) {
                var n = p.target || p.srcElement, q = 3, m;
                while (q-- && n) {
                    m = n.getAttribute("index");
                    if (m) {
                        var o = ["http://stockapp.finance.qq.com/doctor/", l.stockcode, ".html?index=", m].join("");
                        d.open(o);
                        break
                    } else {
                        n = n.parentNode
                    }
                }
            })
        },
        addEventToRank: function() {
            var l = k.f(".borderZoom")
                , m = this;
            i.on(l, "click", function() {
                d.open(["http://stockapp.finance.qq.com/doctor/", m.stockcode, ".html"].join(""))
            })
        },
        showBaiFengbi: function(o) {
            var l = o.gpbfb, m, n = "";
            m = l.replace("%", "");
            if (m > 70) {
                n = ["\u606d\u559c\uff0c\u4f60\u6218\u80dc\u4e86", l, "\u7684\u80a1\u7968"].join("")
            } else {
                if (m < 30) {
                    m = 100 - m;
                    n = ["\u6ce8\u610f\uff0c\u8bc4\u7ea7\u4f4e\u4e8e", m, "%\u7684\u80a1\u7968"].join("")
                } else {
                    n = ["\u52a0\u6cb9\uff0c\u8bc4\u7ea7\u9ad8\u4e8e", l, "\u7684\u80a1\u7968"].join("")
                }
            }
            k.f("baifengbi").innerHTML = "<span></span>" + n
        },
        init: function(l) {
            var m = this;
            this.stockcode = l;
            h("http://web.ifzq.gtimg.cn/stock/doctor/data/hqy?code=" + this.stockcode.substr(2) + "&_var=tempDatas", function() {
                var o = d.tempDatas;
                if (o.code === 0 && !g(o)) {
                    var n = o.data;
                    k.f("doctor_gpzhoushi").innerHTML = __.lang.trim(n.gpzs) || "--&#12288;";
                    k.f("doctor_gpzhidi").innerHTML = __.lang.trim(n.gpzd) || "--&#12288;";
                    k.f("doctor_topInfo").innerHTML = n.gpjy;
                    k.f("doctor_h2desp").innerHTML = n.gppl;
                    m.showBaiFengbi(n);
                    m.showRank(n);
                    m.showSixLititude(n);
                    m.addFlowData();
                    a(1)
                } else {
                    k.f("mod-gpys").style.display = "none";
                    k.f("mod-gpys-spacer").style.display = "none"
                }
            });
            this.addEventToUL();
            this.addEventToRank()
        },
        stockcode: ""
    };
    __.set(j, f)
})();
__.app.stock.quotpage.doctor.init(g_Symbol);
__.app.stock.quotpage.doctor.onReady(function() {
    __.QosSS.set("gpys")
});
(function() {
    var c = __
        , d = []
        , a = 0
        , e = function(f) {
            if (a == f) {
                return
            }
            a = f;
            if (a == 1) {
                b()
            }
        }
        , b = function(f) {
            if (__.lang.isFunction(f)) {
                d.push(f)
            }
            if (a == 1) {
                __.each(d, function(g) {
                    g()
                })
            }
        }
        ;
    c.set("__.app.stockRating");
    c.app.stockRating = (function() {
        var f = c.Dom
            , l = c.Event
            , g = c.Lang
            , j = c.log
            , i = c.config.win
            , h = c.Table
            , k = i.g_StockRating;
        return {
            onReady: b,
            init: function() {
                if (!k || k.stk_code == "--") {
                    var m = f.f("mod-jggd");
                    m.style.display = "none";
                    __.dom.f("mod-jggd-spacer").style.display = "none";
                    while (m = m.nextSibling) {
                        if (m.tagName && m.tagName.toLowerCase() == "div") {
                            if (m.className == "hr10") {
                                m.style.display = "none"
                            }
                            break
                        }
                    }
                    e(1)
                } else {
                    this._loadMainStock()
                }
            },
            _loadMainStock: function() {
                var p = i.g_Code, n = i.g_Type, m = h.MAP_STOCKTYPE[n] + p, o = this, q, r = function(s) {
                        k.price = s && s[4];
                        k.ratio = k.price > 0 && k.expect_price > 0 ? ((k.expect_price - k.price) / k.price * 100).toFixed(2) : "--";
                        o._fill();
                        o._draw([k.price - 0, k.expect_price == "--" ? 0 : k.expect_price - 0, k.min_price == "--" ? 0 : k.min_price - 0, k.max_price == "--" ? 0 : k.max_price - 0]);
                        e(1);
                        try {
                            __.app.QosSS.set("stockRating")
                        } catch (t) {}
                    }
                    ;
                q = function() {
                    if (i["v_" + m] && __.app.stdTime.getStdTime() > 0) {
                        var s = i["v_" + m];
                        s = s && s.split("~");
                        r(s)
                    } else {
                        h.load(m, q)
                    }
                }
                ;
                q()
            },
            _fill: function() {
                var n, o, q, m, p;
                n = [];
                p = k.agency_rating_id.split("|");
                g.e(k.agency_rating.split("|"), function(s, r) {
                    n.push({
                        tag: "li",
                        child: {
                            tag: "a",
                            href: "http://bbs.qq.com/finance/" + p[r] + ".html",
                            text: s,
                            target: "_blank"
                        }
                    })
                });
                f.addEl(n, f.f("#mod-jggd .right ul"));
                n = [];
                q = {
                    1: "\u5f3a\u70c8\u770b\u6da8",
                    2: "\u770b\u6da8",
                    3: "\u770b\u5e73",
                    4: "\u770b\u8dcc",
                    5: "\u5f3a\u70c8\u770b\u8dcc"
                };
                o = function(r, t, s) {
                    if (Math.max(r[1], r[2], r[3], r[4], r[5]) == r[t - 1]) {
                        if (r[t - 1] >= 5) {
                            s.className = "bg2";
                            s.title = "\u6301\u6709\u201c" + q[t - 1] + "\u201d\u89c2\u70b9\u7684\u62a5\u544a\u6570\u5360\u603b\u62a5\u544a\u6570\u7684" + (100 * r[t - 1] / r[0]).toFixed(2) + "%"
                        }
                    }
                    return r[t - 1]
                }
                ;
                g.e(g.range(1, 4), function(r) {
                    n.push(k["month" + r + "_rating"].split("|").join("~"))
                });
                h.fill(n, f.f("agents-report-count"), [function(r, u, t, s) {
                    return k["month" + (s + 1)]
                }
                    , 0, o, o, o, o, o]);
                m = new Date(__.app.stdTime.getStdTime() * 1000);
                f.addText(f.f("predict-date"), (m.getMonth() + 1) + "\u6708" + m.getDate() + "\u65e5");
                if (k.expect_price == "--") {
                    f.f("predict-price").innerHTML = "\u6682\u65e0\u673a\u6784\u9884\u6d4b\u6570\u636e"
                } else {
                    f.f("predict-price").innerHTML = "\u673a\u6784\u5bf9\u8be5\u80a1\u7968\u4ef7\u683c\u9884\u6d4b\u76ee\u6807\u4ef7\u4f4d\u662f" + k.expect_price + "\u5143\uff0c\u76ee\u6807\u6da8\u5e45" + h.processors.GET_PERCENT(k.ratio)
                }
            },
            _draw: function(s) {
                var r = 0, p = [], m = f.f("#mod-jggd .canvas"), o, q, n;
                if (s[0] < s[2]) {
                    q = (329 - 64 - 21) / (s[3] - s[0]);
                    n = (329 - 64 - 64) / (s[3] - s[2]);
                    if (q < n) {
                        r = q;
                        p[0] = 21;
                        p[1] = r * (s[1] - s[0]) + p[0];
                        p[2] = r * (s[2] - s[0]) + p[0];
                        p[3] = r * (s[3] - s[0]) + p[0];
                        p[4] = p[3] + 64
                    } else {
                        r = n;
                        p[2] = 64;
                        p[0] = p[2] + (s[0] - s[2]) * r;
                        p[1] = p[2] + (s[1] - s[2]) * r;
                        p[3] = p[2] + (s[3] - s[2]) * r;
                        p[4] = p[3] + 64
                    }
                } else {
                    if (s[0] < s[3]) {
                        r = (329 - 64 - 64) / (s[3] - s[2]);
                        p[2] = 64;
                        p[0] = p[2] + (s[0] - s[2]) * r;
                        p[1] = p[2] + (s[1] - s[2]) * r;
                        p[3] = p[2] + (s[3] - s[2]) * r;
                        p[4] = p[3] + 64
                    } else {
                        q = (329 - 64 - 21) / (s[0] - s[2]);
                        n = (329 - 64 - 64) / (s[3] - s[2]);
                        if (q < n) {
                            r = q;
                            p[2] = 64;
                            p[0] = p[2] + (s[0] - s[2]) * r;
                            p[1] = p[2] + (s[1] - s[2]) * r;
                            p[3] = p[2] + (s[3] - s[2]) * r;
                            p[4] = p[0] + 21
                        } else {
                            r = n;
                            p[2] = 64;
                            p[0] = p[2] + (s[0] - s[2]) * r;
                            p[1] = p[2] + (s[1] - s[2]) * r;
                            p[3] = p[2] + (s[3] - s[2]) * r;
                            p[4] = p[0] + 64
                        }
                    }
                }
                m.style.position = "relative";
                m.innerHTML = "";
                o = "position:absolute;top:85px;height:11px;font-size:0;";
                f.addEl([{
                    cls: "image bar"
                }, {
                    cls: "image bar act",
                    css: "left:" + (p[2] + 21) + "px;width:" + (p[3] - p[2] - 7) + "px;"
                }, {
                    css: "position:absolute;top:37px;left:" + (p[0] - 5) + "px;z-index:1;",
                    child: [{
                        css: "text-align:center;",
                        text: s[0].toFixed(2)
                    }, {
                        cls: "image zs"
                    }]
                }, {
                    css: "position:absolute;top:98px;left:" + (p[2] - 63) + "px;",
                    child: [{
                        cls: "image mbzdj"
                    }, {
                        css: "text-align:right;position:relative;top:-7px;left:-30px;",
                        text: s[2].toFixed(2)
                    }]
                }, {
                    css: "position:absolute;top:1px;left:" + (p[1] - 21) + "px;",
                    child: [{
                        css: "text-align:center;",
                        html: s[1].toFixed(2) + "(" + h.processors.GET_PERCENT(k.ratio) + ")"
                    }, {
                        cls: "image mbjj"
                    }]
                }, {
                    css: "position:absolute;top:98px;left:" + (p[3]) + "px;",
                    child: [{
                        cls: "image mbzgj"
                    }, {
                        css: "text-align:left;position:relative;top:-7px;left:26px;",
                        text: s[3].toFixed(2)
                    }]
                }], m)
            }
        }
    }())
}());
__.app.stockRating.init();
__.app.stockRating.onReady(function() {
    __.QosSS.set("jggd")
});
(function() {
    var b = __.dom.f("expltext")
        , a = __.dom.$("#table_tzld tr").slice(2);
    if (!b || !a) {
        return
    }
    var c = function() {
            var g = __.dom.f(".WbTalkBox")
                , f = __.dom.f(".weibo-talk");
            if (g && f) {
                var d = __.dom.getPosition(f, "offsetLeft")
                    , e = __.dom.getPosition(f, "offsetTop");
                g.style.left = d + "px";
                g.style.top = e + "px"
            }
        }
        ;
    __.event.on(b, "click", function() {
        if (__.dom.hasClass(b, "off")) {
            __.dom.remClass(b, "off");
            __.each(a, function(d) {
                __.dom.addClass(d, "undis")
            });
            b.innerHTML = '<a href="javascript:void(0);">\u66f4\u591a\u6295\u8d44\u4eae\u70b9</a>';
            c()
        } else {
            __.dom.addClass(b, "off");
            __.each(a, function(d) {
                __.dom.remClass(d, "undis")
            });
            b.innerHTML = '<a href="javascript:void(0);">\u9690\u85cf</a>';
            c()
        }
    })
}());
(function() {
    if (__.dom.f("#mod-ltgd .null")) {
        __.dom.f("#mod-ltgd").style.display = "none";
        __.dom.f("#mod-sdgd").style.display = "block"
    }
}());
(function() {
    var c = "fn-recent", a = location.pathname.replace(/\/[^\/]+$/, "/"), k = 2 * 24 * 60 * 60 * 1000, d = 3, h = function() {
            return (__.cookie.get("uin") || __.cookie.get("luin")).replace(/^o0*/, "")
        }
        , g = function(m) {
            var n = __.cookie.get(c)
                , l = 0;
            __.each(n.split("^"), function(p) {
                p = p.split("|");
                if (p[0] == m) {
                    l = p[1]
                }
            });
            return l
        }
        , i = function(o, n) {
            var q = __.cookie.get(c)
                , m = []
                , p = false;
            __.each(q.split("^"), function(r) {
                r = r.split("|");
                if (r[0] == o) {
                    p = true;
                    if (n < 0) {
                        return
                    }
                    r[1] = n
                }
                if (r.length == 2) {
                    m.push(r.join("|"))
                }
            });
            if (!p && n > 0) {
                m.push(o + "|" + n)
            }
            m = m.join("^");
            var l = new Date();
            l.setTime(l.getTime() + k);
            if (m) {
                __.cookie.set(c, m, {
                    expires: l,
                    path: a
                })
            } else {
                __.cookie.del(c, a)
            }
        }
        , b = function(m, n, o, l) {
            NEWSTOCKPROXY.get(m, function(p) {
                if (p && p.code == 0 && p.data && p.data.stock) {
                    if (p.data.stock.indexOf(n) < 0) {
                        o()
                    } else {
                        l()
                    }
                } else {
                    if (__.app.pstkManager.pstock.hasStock(n)) {
                        l()
                    } else {
                        o()
                    }
                }
            })
        }
        , e = function(l) {
            var n = __.dom.f("mod-tztips");
            if (!n) {
                return
            }
            var q = {
                t: __.dom.getPosition(n, "offsetTop"),
                l: __.dom.getPosition(n, "offsetLeft")
            };
            var m = __.ua.ie ? 0 : 1;
            var p = __.dom.addEl({
                css: "position:absolute;top:" + (q.t - m) + "px;left:" + (q.l - m) + "px;height:27px;line-height:27px;width:525px;background:#FFFFCE;border:1px solid #F0E5BA;",
                html: '<div style="float:left;margin-left:10px;">\u60a8\u6700\u8fd1\u591a\u6b21\u67e5\u770b\u8be5\u80a1\uff0c\u53ef\u8003\u8651\u5c06\u8be5\u80a1\u52a0\u5165\u81ea\u9009\uff0c\u901a\u8fc7QQ\u83b7\u5f97\u80a1\u4ef7\u3001\u4fe1\u606f\u63d0\u9192</div><div class="open-add" style="margin-left:2px;float:left;margin-top:1px;background:url(http://mat1.gtimg.com/finance/images/stock/p/hqhk_gg/hqpanel_v1.1/sprite_cn.png) no-repeat;width:49px;height:25px;cursor:pointer;"></div><div class="close" style="float:right;cursor:pointer;width:27px;height:27px;text-align:center;">\u00d7</div>'
            }, __.doc.body);
            var o = setInterval(function() {
                var r = {
                    t: __.dom.getPosition(n, "offsetTop"),
                    l: __.dom.getPosition(n, "offsetLeft")
                };
                if (q.t != r.t || q.l != r.l) {
                    q = r;
                    p.style.top = (q.t - m) + "px";
                    p.style.left = (q.l - m) + "px"
                }
            }, 200);
            f.log(1);
            __.event.on(p, "click", function(s) {
                var r = s.target.className;
                if (r == "close") {
                    p.style.display = "none";
                    clearInterval(o);
                    i(l, -1);
                    f.log(2)
                } else {
                    if (r == "open-add") {
                        p.style.display = "none";
                        clearInterval(o);
                        __.app.pstkManager.add();
                        i(l, -1);
                        f.log(3)
                    }
                }
            })
        }
        , f, j = function() {
            var l = h();
            f = new __.FnBoss("1429",l,"");
            var m = g_Symbol;
            b(l, m, function() {
                var n = g(m);
                n++;
                if (n >= d) {
                    e(m)
                }
                i(m, n)
            }, function() {
                i(m, -1)
            })
        }
        ;
    j()
}());
/*  |xGv00|03ea594390b11d4155b4da6b6c96900e */